package com.zhiche.lisa.lspm.dao.model.otm;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 运力推送OTM接口日志表
 * </p>
 *
 * @author qichao
 * @since 2018-07-06
 */
@TableName("itf_otm_lisa_carrier")
public class OtmLisaCarrier extends Model<OtmLisaCarrier> {

    private static final long serialVersionUID = 1L;

	@TableId(value="id", type= IdType.AUTO)
	private Long id;
    /**
     * 承运商ID
     */
	@TableField("lsp_id")
	private Long lspId;
    /**
     * 牵引车ID
     */
	@TableField("carrier_id")
	private Long carrierId;
    /**
     * 挂车ID
     */
	@TableField("trailer_id")
	private Long trailerId;
    /**
     * 司机ID
     */
	@TableField("driver_id")
	private Long driverId;
    /**
     * OTM接口地址
     */
	@TableField("otm_api_url")
	private String otmApiUrl;
    /**
     * 接口请求ID
     */
	@TableField("request_id")
	private String requestId;
    /**
     * 请求是否成功：0-否；1-是
     */
	@TableField("is_success")
	private Integer isSuccess;
    /**
     * 请求返回结果
     */
	@TableField("return_message")
	private String returnMessage;
    /**
     * 记录创建时间
     */
	@TableField("gmt_create")
	private Date gmtCreate;
    /**
     * OTM处理时间
     */
	@TableField("gmt_omt")
	private Date gmtOmt;


	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Long getLspId() {
		return lspId;
	}

	public void setLspId(Long lspId) {
		this.lspId = lspId;
	}

	public Long getCarrierId() {
		return carrierId;
	}

	public void setCarrierId(Long carrierId) {
		this.carrierId = carrierId;
	}

	public Long getTrailerId() {
		return trailerId;
	}

	public void setTrailerId(Long trailerId) {
		this.trailerId = trailerId;
	}

	public Long getDriverId() {
		return driverId;
	}

	public void setDriverId(Long driverId) {
		this.driverId = driverId;
	}

	public String getOtmApiUrl() {
		return otmApiUrl;
	}

	public void setOtmApiUrl(String otmApiUrl) {
		this.otmApiUrl = otmApiUrl;
	}

	public String getRequestId() {
		return requestId;
	}

	public void setRequestId(String requestId) {
		this.requestId = requestId;
	}

	public Integer getIsSuccess() {
		return isSuccess;
	}

	public void setIsSuccess(Integer isSuccess) {
		this.isSuccess = isSuccess;
	}

	public String getReturnMessage() {
		return returnMessage;
	}

	public void setReturnMessage(String returnMessage) {
		this.returnMessage = returnMessage;
	}

	public Date getGmtCreate() {
		return gmtCreate;
	}

	public void setGmtCreate(Date gmtCreate) {
		this.gmtCreate = gmtCreate;
	}

	public Date getGmtOmt() {
		return gmtOmt;
	}

	public void setGmtOmt(Date gmtOmt) {
		this.gmtOmt = gmtOmt;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "OtmLisaCarrier{" +
			", id=" + id +
			", lspId=" + lspId +
			", carrierId=" + carrierId +
			", trailerId=" + trailerId +
			", driverId=" + driverId +
			", otmApiUrl=" + otmApiUrl +
			", requestId=" + requestId +
			", isSuccess=" + isSuccess +
			", returnMessage=" + returnMessage +
			", gmtCreate=" + gmtCreate +
			", gmtOmt=" + gmtOmt +
			"}";
	}
}
